package com.school.campus.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.school.common.annotation.Excel;
import com.school.common.core.domain.BaseEntity;

/**
 * 活动报名对象 activity_registration
 *
 * @author wwj
 * @date 2025-11-07
 */
public class ActivityRegistration extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（自增）
     */
    private Long id;

    /**
     * 关联活动表的ID（需与活动表id类型一致）
     */
    @Excel(name = "关联活动表的ID", readConverterExp = "需=与活动表id类型一致")
    private String activityId;

    /**
     * 关联用户表的user_id（与sys_user.user_id类型一致）
     */
    @Excel(name = "关联用户表的user_id", readConverterExp = "与=sys_user.user_id类型一致")
    private Long userId;

    /**
     * 报名时间（默认当前时间）
     */
    @Excel(name = "报名时间", readConverterExp = "默=认当前时间")
    private Date registrationTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("activityId", getActivityId())
                .append("userId", getUserId())
                .append("registrationTime", getRegistrationTime())
                .toString();
    }
}
